#include <stdio.h>

void add(double number1, double number2) {
	printf("%.4lf+%.4lf=%.4lf", number1, number2, number1 + number2);
}

void subtraction(double number1, double number2) {
	printf("%.4lf-%.4lf=%.4lf", number1, number2, number1 - number2);
}

void divide(double number1, double number2) {
	if (number2 == 0) {
		printf("Wrong!Division by zero!\n");
	}
	printf("%.4lf/%.4lf=%.4lf", number1, number2, number1 / number2);
}

void multiply(double number1, double number2) {
	printf("%.4lf*%.4lf=%.4lf", number1, number2, number1 * number2);
}

int main() {
	double number1, number2;
	char oper;
	while (scanf("%lf %c %lf", &number1, &oper, &number2) != EOF) {
		char arr[] = {'+', '-', '*', '/'};
		char *p = arr;
		while (1) {
			char ch = *p;
			printf("--\n");
			printf("%c\n", *p);
			if (ch != '\0') {

				if (ch == oper) {
					if (ch == '+') {
						add(number1, number2);
						p = arr;
						break;
					} else if (ch == '-') {
						subtraction( number1,  number2);
						p = arr;
						break;
					} else if (ch == '*') {
						multiply(number1,  number2);
						p = arr;
						break;
					} else {
						divide( number1, number2);
						p = arr;
						break;
					}

				} else {
					p++;
				}
			} else {
				printf("Invalid operation!\n");
				break;
			}

		}

	}
	return 0;
}